package com.itfreer.gis.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import org.springframework.beans.BeanUtils;
import com.itfreer.form.api.JdbcBaseEntity;

/**
 * 定义数据导入记录实体
 */
@Entity(name = "gis_data_import")
public class JdbcGisDataImportEntity implements JdbcBaseEntity<GisDataImportEntity>, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6559237723806134468L;

	/**
	 * 主健
	 */
	@Id
	@Column(name = "s_iD", length = 50, nullable = true)
	private String id;

	/**
	 * 数据来源
	 */
	@Column(name = "s_source", length = 50, nullable = true)
	private String source;

	/**
	 * 数据目标
	 */
	@Column(name = "s_target", length = 100, nullable = true)
	private String target;

	/**
	 * 导入者
	 */
	@Column(name = "s_importUserID", length = 50, nullable = true)
	private String importUserID;

	/**
	 * 导入者
	 */
	@Column(name = "s_importUserName", length = 50, nullable = true)
	private String importUserName;

	/**
	 * 导入时间
	 */
	@Column(name = "d_importDate", nullable = true)
	private java.util.Date importDate;

	/**
	 * 成功记录数
	 */
	@Column(name = "i_success", nullable = true)
	private Integer success;

	/**
	 * 失败记录数
	 */
	@Column(name = "i_fail", nullable = true)
	private Integer fail;

	/**
	 * 导入报告
	 */
	@Column(name = "s_report", nullable = true)
	private String report;

	/**
	 * 主健
	 */
	public String getId() {
		return id;
	}

	/**
	 * 主健
	 */
	public void setId(String value) {
		this.id = value;
	}

	/**
	 * 数据来源
	 */
	public String getSource() {
		return source;
	}

	/**
	 * 数据来源
	 */
	public void setSource(String value) {
		this.source = value;
	}

	/**
	 * 数据目标
	 */
	public String getTarget() {
		return target;
	}

	/**
	 * 数据目标
	 */
	public void setTarget(String value) {
		this.target = value;
	}

	/**
	 * 导入者
	 */
	public String getImportUserID() {
		return importUserID;
	}

	/**
	 * 导入者
	 */
	public void setImportUserID(String value) {
		this.importUserID = value;
	}

	/**
	 * 导入者
	 */
	public String getImportUserName() {
		return importUserName;
	}

	/**
	 * 导入者
	 */
	public void setImportUserName(String value) {
		this.importUserName = value;
	}

	/**
	 * 导入时间
	 */
	public java.util.Date getImportDate() {
		return importDate;
	}

	/**
	 * 导入时间
	 */
	public void setImportDate(java.util.Date value) {
		this.importDate = value;
	}

	/**
	 * 成功记录数
	 */
	public Integer getSuccess() {
		return success;
	}

	/**
	 * 成功记录数
	 */
	public void setSuccess(Integer value) {
		this.success = value;
	}

	/**
	 * 失败记录数
	 */
	public Integer getFail() {
		return fail;
	}

	/**
	 * 失败记录数
	 */
	public void setFail(Integer value) {
		this.fail = value;
	}

	/**
	 * 导入报告
	 */
	public String getReport() {
		return report;
	}

	/**
	 * 导入报告
	 */
	public void setReport(String value) {
		this.report = value;
	}

	@Override
	public void from(GisDataImportEntity t) {
		BeanUtils.copyProperties(t, this);
	}

	@Override
	public GisDataImportEntity toEntity() {
		GisDataImportEntity toEntity = new GisDataImportEntity();
		BeanUtils.copyProperties(this, toEntity);
		return toEntity;
	}
}